<?php
include_once '../global.php';
$table=$et.'user';
$cook=$_COOKIE["admin"];
    $sql=$db->query("select * from $table where number='$cook' or realname='$cook'");
    $row=$db->row($sql);
    $realname = $row["realname"];
    $smarty->assign("sql_realname",$realname);
    $smarty->assign("admincook",$cook);
    $smarty->display($style."/admin/admincp.tpl");
?>